/**
 * 
 */
package com.sf.osms.dep.dao.impl;

import org.hibernate.SQLQuery;
import org.springframework.stereotype.Repository;

import com.sf.novatar.base.dao.BaseDao;
import com.sf.osms.dep.dao.ISyncLockDao;

/**
 * @author sfhq1469
 *
 */
@Repository
public class SyncLockDaoImpl extends BaseDao  implements ISyncLockDao{

	@Override
	public void delSyncLock(String name) {
		String sql = "delete from ts_sync_lock where LOCK_CODE = ?";
		SQLQuery query = this.getCurrentSession().createSQLQuery(sql);
		query.setString(0, name);
		query.executeUpdate();
	}

}
